You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The npmrc files use hardcoded versioned paths; ensure tooling updates these when switching versions to prevent config drift or broken global prefix/globalconfig resolution.
Same concern with version-specific absolute paths which can become stale; verify templates or build scripts replace these consistently across .ber and non-.ber files.
Validate the newly added release URLs are reachable and checksums/process expect the 2025.8.21 tag and filename pattern; mismatch would break automated downloads.
Latest suggestions up to 4d78995
Explore these optional code suggestions:
Category
Suggestion
Impact
Possible issue
Halt on nodevars failure
Use command chaining that stops on failure to avoid running npm config if nodevars.bat fails. This prevents misconfiguration and provides a clear error path.
-"%BEARSAMPP_NODEJS_PATH%\nodevars.bat" & "%BEARSAMPP_NODEJS_PATH%\npm" config set globalconfig "%BEARSAMPP_NODEJS_CONFIG_PATH%" --global+"%BEARSAMPP_NODEJS_PATH%\nodevars.bat" && "%BEARSAMPP_NODEJS_PATH%\npm" config set globalconfig "%BEARSAMPP_NODEJS_CONFIG_PATH%" --global || EXIT /B 1
[To ensure code accuracy, apply this suggestion manually]
Suggestion importance[1-10]: 7
__
Why: The suggestion correctly proposes changing the command separator from & to && to prevent the npm command from running if nodevars.bat fails, which improves the script's robustness and error handling.
Medium
Conditional chaining with exit
Ensure the npm configuration step only runs if environment setup succeeds by using '&&' and exit on error. This avoids partial or incorrect global npm config when prerequisites fail.
-"%BEARSAMPP_NODEJS_PATH%\nodevars.bat" & "%BEARSAMPP_NODEJS_PATH%\npm" config set globalconfig "%BEARSAMPP_NODEJS_CONFIG_PATH%" --global+"%BEARSAMPP_NODEJS_PATH%\nodevars.bat" && "%BEARSAMPP_NODEJS_PATH%\npm" config set globalconfig "%BEARSAMPP_NODEJS_CONFIG_PATH%" --global || EXIT /B 1
[To ensure code accuracy, apply this suggestion manually]
Suggestion importance[1-10]: 7
__
Why: The suggestion correctly proposes changing the command separator from & to && to prevent the npm command from running if nodevars.bat fails, which improves the script's robustness and error handling.
Medium
General
Guard npm after setup
For safety in archived scripts too, prevent npm from running when nodevars fails by using '&&' and propagate errors with a non-zero exit code. This keeps archived launchers consistent and reliable.
-"%BEARSAMPP_NODEJS_PATH%\nodevars.bat" & "%BEARSAMPP_NODEJS_PATH%\npm" config set globalconfig "%BEARSAMPP_NODEJS_CONFIG_PATH%" --global+"%BEARSAMPP_NODEJS_PATH%\nodevars.bat" && "%BEARSAMPP_NODEJS_PATH%\npm" config set globalconfig "%BEARSAMPP_NODEJS_CONFIG_PATH%" --global || EXIT /B 1
[To ensure code accuracy, apply this suggestion manually]
Suggestion importance[1-10]: 7
__
Why: The suggestion correctly proposes changing the command separator from & to && to prevent the npm command from running if nodevars.bat fails, which improves the script's robustness and error handling, even for an archived version.
The prefix points to nodejs22.17.0, which mismatches the new version directory nodejs22.18.0. Update it to avoid writing global installs to the wrong path.
Why: The suggestion correctly identifies a critical configuration error where the prefix path points to the wrong Node.js version, which would cause incorrect behavior.
High
✅ Align backup prefix pathSuggestion Impact:The commit updated the prefix path in the backup npmrc from 22.17.0 to 22.18.0 exactly as suggested.
The backup npmrc mirrors the same incorrect prefix. Align it with the 22.18.0 directory to keep configurations consistent and prevent misrouting installs.
Why: The suggestion correctly identifies a critical configuration error in a backup file, ensuring consistency and preventing issues if the backup is used.
High
✅ Update prefix to new versionSuggestion Impact:The commit updated the prefix path to reference nodejs24.6.0 exactly as suggested.
Why: The suggestion correctly identifies a critical configuration error where the prefix path points to the wrong Node.js version, which would cause incorrect behavior.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Type
Enhancement
Description
Archive old Node.js releases (18.8.0, 18.9.1)
Add new Node.js versions (22.18.0, 24.6.0)
Update bundle release to 2025.8.21
Fix ignored file formatting issues
Diagram Walkthrough
File Walkthrough
4 files
Fix line ending formattingFix line ending formattingFix empty file formattingFix empty file formatting2 files
Add Node.js 22.18.0 launch scriptAdd Node.js 24.6.0 launch script12 files
Add Node.js 22.18.0 configurationAdd npm configuration for 22.18.0Add backup npm configuration for 22.18.0Add npm module configuration for 22.18.0Add backup npm module config for 22.18.0Add Node.js 24.6.0 configurationAdd npm configuration for 24.6.0Add backup npm configuration for 24.6.0Add npm module configuration for 24.6.0Add backup npm module config for 24.6.0Update bundle release to 2025.8.21Add download URLs for new versions101 files